home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_objc.idb / usr / freeware / include / ppi / Assoc.h.z / Assoc.h
Encoding:
C/C++ Source or Header  |  1999-07-16  |  619 b   |  45 lines

  1.  
  2. /*
  3.  * Portable Object Compiler (c) 1996 by Stes & Lerman.  All Rights Reserved.
  4.  */
  5.  
  6. #ifndef __OBJASSOC_H__
  7. #define __OBJASSOC_H__
  8.  
  9. #include "objc.h"
  10.  
  11. #define Association Assoc
  12.  
  13. @interface Assoc: Object
  14. {
  15.     id    key;
  16.     id    value;
  17. }
  18.  
  19. - setUpKey:aKey value:aValue;
  20. + key:aKey;
  21. + key:aKey value:aValue;
  22.  
  23. - key;
  24. - (STR) str;
  25. - value;
  26.  
  27. - (unsigned) hash;
  28. - (BOOL) isEqual:anAssoc;
  29. - (int) compare:anAssoc;
  30.  
  31. - value:aValue;
  32.  
  33. - printToFile:(FILE *)aFile;
  34.  
  35. #ifdef __PORTABLE_OBJC_NEXT__
  36. - write:(NXTypedStream *)stream;
  37. - read:(NXTypedStream *)stream;
  38. #endif /* __PORTABLE_OBJC_NEXT__ */
  39.  
  40. @end
  41.  
  42. #endif /* __OBJASSOC_H__ */
  43.  
  44.  
  45.